package com.zhiyou.wisdom.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class VisitorExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public VisitorExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andVIdIsNull() {
            addCriterion("v_id is null");
            return (Criteria) this;
        }

        public Criteria andVIdIsNotNull() {
            addCriterion("v_id is not null");
            return (Criteria) this;
        }

        public Criteria andVIdEqualTo(Integer value) {
            addCriterion("v_id =", value, "vId");
            return (Criteria) this;
        }

        public Criteria andVIdNotEqualTo(Integer value) {
            addCriterion("v_id <>", value, "vId");
            return (Criteria) this;
        }

        public Criteria andVIdGreaterThan(Integer value) {
            addCriterion("v_id >", value, "vId");
            return (Criteria) this;
        }

        public Criteria andVIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("v_id >=", value, "vId");
            return (Criteria) this;
        }

        public Criteria andVIdLessThan(Integer value) {
            addCriterion("v_id <", value, "vId");
            return (Criteria) this;
        }

        public Criteria andVIdLessThanOrEqualTo(Integer value) {
            addCriterion("v_id <=", value, "vId");
            return (Criteria) this;
        }

        public Criteria andVIdIn(List<Integer> values) {
            addCriterion("v_id in", values, "vId");
            return (Criteria) this;
        }

        public Criteria andVIdNotIn(List<Integer> values) {
            addCriterion("v_id not in", values, "vId");
            return (Criteria) this;
        }

        public Criteria andVIdBetween(Integer value1, Integer value2) {
            addCriterion("v_id between", value1, value2, "vId");
            return (Criteria) this;
        }

        public Criteria andVIdNotBetween(Integer value1, Integer value2) {
            addCriterion("v_id not between", value1, value2, "vId");
            return (Criteria) this;
        }

        public Criteria andVNameIsNull() {
            addCriterion("v_name is null");
            return (Criteria) this;
        }

        public Criteria andVNameIsNotNull() {
            addCriterion("v_name is not null");
            return (Criteria) this;
        }

        public Criteria andVNameEqualTo(String value) {
            addCriterion("v_name =", value, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameNotEqualTo(String value) {
            addCriterion("v_name <>", value, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameGreaterThan(String value) {
            addCriterion("v_name >", value, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameGreaterThanOrEqualTo(String value) {
            addCriterion("v_name >=", value, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameLessThan(String value) {
            addCriterion("v_name <", value, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameLessThanOrEqualTo(String value) {
            addCriterion("v_name <=", value, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameLike(String value) {
            addCriterion("v_name like", value, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameNotLike(String value) {
            addCriterion("v_name not like", value, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameIn(List<String> values) {
            addCriterion("v_name in", values, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameNotIn(List<String> values) {
            addCriterion("v_name not in", values, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameBetween(String value1, String value2) {
            addCriterion("v_name between", value1, value2, "vName");
            return (Criteria) this;
        }

        public Criteria andVNameNotBetween(String value1, String value2) {
            addCriterion("v_name not between", value1, value2, "vName");
            return (Criteria) this;
        }

        public Criteria andVIdcardIsNull() {
            addCriterion("v_idcard is null");
            return (Criteria) this;
        }

        public Criteria andVIdcardIsNotNull() {
            addCriterion("v_idcard is not null");
            return (Criteria) this;
        }

        public Criteria andVIdcardEqualTo(String value) {
            addCriterion("v_idcard =", value, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardNotEqualTo(String value) {
            addCriterion("v_idcard <>", value, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardGreaterThan(String value) {
            addCriterion("v_idcard >", value, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardGreaterThanOrEqualTo(String value) {
            addCriterion("v_idcard >=", value, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardLessThan(String value) {
            addCriterion("v_idcard <", value, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardLessThanOrEqualTo(String value) {
            addCriterion("v_idcard <=", value, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardLike(String value) {
            addCriterion("v_idcard like", value, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardNotLike(String value) {
            addCriterion("v_idcard not like", value, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardIn(List<String> values) {
            addCriterion("v_idcard in", values, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardNotIn(List<String> values) {
            addCriterion("v_idcard not in", values, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardBetween(String value1, String value2) {
            addCriterion("v_idcard between", value1, value2, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVIdcardNotBetween(String value1, String value2) {
            addCriterion("v_idcard not between", value1, value2, "vIdcard");
            return (Criteria) this;
        }

        public Criteria andVPhoneIsNull() {
            addCriterion("v_phone is null");
            return (Criteria) this;
        }

        public Criteria andVPhoneIsNotNull() {
            addCriterion("v_phone is not null");
            return (Criteria) this;
        }

        public Criteria andVPhoneEqualTo(String value) {
            addCriterion("v_phone =", value, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneNotEqualTo(String value) {
            addCriterion("v_phone <>", value, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneGreaterThan(String value) {
            addCriterion("v_phone >", value, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("v_phone >=", value, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneLessThan(String value) {
            addCriterion("v_phone <", value, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneLessThanOrEqualTo(String value) {
            addCriterion("v_phone <=", value, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneLike(String value) {
            addCriterion("v_phone like", value, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneNotLike(String value) {
            addCriterion("v_phone not like", value, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneIn(List<String> values) {
            addCriterion("v_phone in", values, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneNotIn(List<String> values) {
            addCriterion("v_phone not in", values, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneBetween(String value1, String value2) {
            addCriterion("v_phone between", value1, value2, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVPhoneNotBetween(String value1, String value2) {
            addCriterion("v_phone not between", value1, value2, "vPhone");
            return (Criteria) this;
        }

        public Criteria andVFindWhoIsNull() {
            addCriterion("v_find_who is null");
            return (Criteria) this;
        }

        public Criteria andVFindWhoIsNotNull() {
            addCriterion("v_find_who is not null");
            return (Criteria) this;
        }

        public Criteria andVFindWhoEqualTo(String value) {
            addCriterion("v_find_who =", value, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoNotEqualTo(String value) {
            addCriterion("v_find_who <>", value, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoGreaterThan(String value) {
            addCriterion("v_find_who >", value, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoGreaterThanOrEqualTo(String value) {
            addCriterion("v_find_who >=", value, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoLessThan(String value) {
            addCriterion("v_find_who <", value, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoLessThanOrEqualTo(String value) {
            addCriterion("v_find_who <=", value, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoLike(String value) {
            addCriterion("v_find_who like", value, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoNotLike(String value) {
            addCriterion("v_find_who not like", value, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoIn(List<String> values) {
            addCriterion("v_find_who in", values, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoNotIn(List<String> values) {
            addCriterion("v_find_who not in", values, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoBetween(String value1, String value2) {
            addCriterion("v_find_who between", value1, value2, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVFindWhoNotBetween(String value1, String value2) {
            addCriterion("v_find_who not between", value1, value2, "vFindWho");
            return (Criteria) this;
        }

        public Criteria andVRelationIsNull() {
            addCriterion("v_relation is null");
            return (Criteria) this;
        }

        public Criteria andVRelationIsNotNull() {
            addCriterion("v_relation is not null");
            return (Criteria) this;
        }

        public Criteria andVRelationEqualTo(String value) {
            addCriterion("v_relation =", value, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationNotEqualTo(String value) {
            addCriterion("v_relation <>", value, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationGreaterThan(String value) {
            addCriterion("v_relation >", value, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationGreaterThanOrEqualTo(String value) {
            addCriterion("v_relation >=", value, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationLessThan(String value) {
            addCriterion("v_relation <", value, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationLessThanOrEqualTo(String value) {
            addCriterion("v_relation <=", value, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationLike(String value) {
            addCriterion("v_relation like", value, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationNotLike(String value) {
            addCriterion("v_relation not like", value, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationIn(List<String> values) {
            addCriterion("v_relation in", values, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationNotIn(List<String> values) {
            addCriterion("v_relation not in", values, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationBetween(String value1, String value2) {
            addCriterion("v_relation between", value1, value2, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVRelationNotBetween(String value1, String value2) {
            addCriterion("v_relation not between", value1, value2, "vRelation");
            return (Criteria) this;
        }

        public Criteria andVCountIsNull() {
            addCriterion("v_count is null");
            return (Criteria) this;
        }

        public Criteria andVCountIsNotNull() {
            addCriterion("v_count is not null");
            return (Criteria) this;
        }

        public Criteria andVCountEqualTo(Integer value) {
            addCriterion("v_count =", value, "vCount");
            return (Criteria) this;
        }

        public Criteria andVCountNotEqualTo(Integer value) {
            addCriterion("v_count <>", value, "vCount");
            return (Criteria) this;
        }

        public Criteria andVCountGreaterThan(Integer value) {
            addCriterion("v_count >", value, "vCount");
            return (Criteria) this;
        }

        public Criteria andVCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("v_count >=", value, "vCount");
            return (Criteria) this;
        }

        public Criteria andVCountLessThan(Integer value) {
            addCriterion("v_count <", value, "vCount");
            return (Criteria) this;
        }

        public Criteria andVCountLessThanOrEqualTo(Integer value) {
            addCriterion("v_count <=", value, "vCount");
            return (Criteria) this;
        }

        public Criteria andVCountIn(List<Integer> values) {
            addCriterion("v_count in", values, "vCount");
            return (Criteria) this;
        }

        public Criteria andVCountNotIn(List<Integer> values) {
            addCriterion("v_count not in", values, "vCount");
            return (Criteria) this;
        }

        public Criteria andVCountBetween(Integer value1, Integer value2) {
            addCriterion("v_count between", value1, value2, "vCount");
            return (Criteria) this;
        }

        public Criteria andVCountNotBetween(Integer value1, Integer value2) {
            addCriterion("v_count not between", value1, value2, "vCount");
            return (Criteria) this;
        }

        public Criteria andVTimeIsNull() {
            addCriterion("v_time is null");
            return (Criteria) this;
        }

        public Criteria andVTimeIsNotNull() {
            addCriterion("v_time is not null");
            return (Criteria) this;
        }

        public Criteria andVTimeEqualTo(Date value) {
            addCriterionForJDBCDate("v_time =", value, "vTime");
            return (Criteria) this;
        }

        public Criteria andVTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("v_time <>", value, "vTime");
            return (Criteria) this;
        }

        public Criteria andVTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("v_time >", value, "vTime");
            return (Criteria) this;
        }

        public Criteria andVTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("v_time >=", value, "vTime");
            return (Criteria) this;
        }

        public Criteria andVTimeLessThan(Date value) {
            addCriterionForJDBCDate("v_time <", value, "vTime");
            return (Criteria) this;
        }

        public Criteria andVTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("v_time <=", value, "vTime");
            return (Criteria) this;
        }

        public Criteria andVTimeIn(List<Date> values) {
            addCriterionForJDBCDate("v_time in", values, "vTime");
            return (Criteria) this;
        }

        public Criteria andVTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("v_time not in", values, "vTime");
            return (Criteria) this;
        }

        public Criteria andVTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("v_time between", value1, value2, "vTime");
            return (Criteria) this;
        }

        public Criteria andVTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("v_time not between", value1, value2, "vTime");
            return (Criteria) this;
        }

        public Criteria andVPicIsNull() {
            addCriterion("v_pic is null");
            return (Criteria) this;
        }

        public Criteria andVPicIsNotNull() {
            addCriterion("v_pic is not null");
            return (Criteria) this;
        }

        public Criteria andVPicEqualTo(String value) {
            addCriterion("v_pic =", value, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicNotEqualTo(String value) {
            addCriterion("v_pic <>", value, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicGreaterThan(String value) {
            addCriterion("v_pic >", value, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicGreaterThanOrEqualTo(String value) {
            addCriterion("v_pic >=", value, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicLessThan(String value) {
            addCriterion("v_pic <", value, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicLessThanOrEqualTo(String value) {
            addCriterion("v_pic <=", value, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicLike(String value) {
            addCriterion("v_pic like", value, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicNotLike(String value) {
            addCriterion("v_pic not like", value, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicIn(List<String> values) {
            addCriterion("v_pic in", values, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicNotIn(List<String> values) {
            addCriterion("v_pic not in", values, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicBetween(String value1, String value2) {
            addCriterion("v_pic between", value1, value2, "vPic");
            return (Criteria) this;
        }

        public Criteria andVPicNotBetween(String value1, String value2) {
            addCriterion("v_pic not between", value1, value2, "vPic");
            return (Criteria) this;
        }

        public Criteria andVStateIsNull() {
            addCriterion("v_state is null");
            return (Criteria) this;
        }

        public Criteria andVStateIsNotNull() {
            addCriterion("v_state is not null");
            return (Criteria) this;
        }

        public Criteria andVStateEqualTo(Integer value) {
            addCriterion("v_state =", value, "vState");
            return (Criteria) this;
        }

        public Criteria andVStateNotEqualTo(Integer value) {
            addCriterion("v_state <>", value, "vState");
            return (Criteria) this;
        }

        public Criteria andVStateGreaterThan(Integer value) {
            addCriterion("v_state >", value, "vState");
            return (Criteria) this;
        }

        public Criteria andVStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("v_state >=", value, "vState");
            return (Criteria) this;
        }

        public Criteria andVStateLessThan(Integer value) {
            addCriterion("v_state <", value, "vState");
            return (Criteria) this;
        }

        public Criteria andVStateLessThanOrEqualTo(Integer value) {
            addCriterion("v_state <=", value, "vState");
            return (Criteria) this;
        }

        public Criteria andVStateIn(List<Integer> values) {
            addCriterion("v_state in", values, "vState");
            return (Criteria) this;
        }

        public Criteria andVStateNotIn(List<Integer> values) {
            addCriterion("v_state not in", values, "vState");
            return (Criteria) this;
        }

        public Criteria andVStateBetween(Integer value1, Integer value2) {
            addCriterion("v_state between", value1, value2, "vState");
            return (Criteria) this;
        }

        public Criteria andVStateNotBetween(Integer value1, Integer value2) {
            addCriterion("v_state not between", value1, value2, "vState");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}